package org.example.service;

import org.example.pojo.PageResult;
import org.example.pojo.Student;
import org.example.pojo.StudentQueryParam;

import java.util.List;

public interface StudentService {
    /*
    * 条件分页查询
    * */
    PageResult<Student> page(StudentQueryParam studentQueryParam);

    /*
    * 新增学员
    * */
    public void add(Student student);

    /*
    * 根据ID查询学生
    * */
    public Student getById(Integer id);

    /*
    * 批量删除
    * */
    public void deleteByIds(List<Integer> ids);

    /*
    * 处理违纪
    * */
    public void processViolation(Integer id, Integer score);
}
